<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>酒菜设置</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="node_modules/select2/dist/css/select2.min.css">
    <link rel="stylesheet" href="node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css">
    <link rel="stylesheet" href="css/custom.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="node_modules/html5shiv/dist/html5shiv.min.js"></script>
      <script src="node_modules/respond.js/dest/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="container">
      <!-- 左菜单 -->
      <div class="col-md-2 left-menu">
        <div class="row">
          <div class="menu-main-title">
            <h4>餐饮设置</h4>
          </div>
          <div class="list-group">
            <a href="#menu01" class="list-group-item menu-title" role="button" data-toggle="collapse" aria-expanded="false" aria-controls="collapseMenu01">
              <i class="fa fa-chevron-right"></i>基础资料
            </a>
            <ul class="list-group collapse.in indent-10" id="menu01">
              <a href="#" class="list-group-item">餐厅资料</a>
              <a href="#" class="list-group-item">餐位资料</a>
              <a href="#" class="list-group-item">品类管理</a>
            </ul>
            <a href="#menu02" class="list-group-item menu-title" role="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseMenu02">
              <i class="fa fa-chevron-right"></i>售卖设置
            </a>
            <ul class="list-group collapse.in indent-10" id="menu02">
              <a href="#" class="list-group-item menu-active">酒菜设置</a>
              <a href="#" class="list-group-item">折扣设置</a>
              <a href="#" class="list-group-item">套餐设置</a>
            </ul>
            <a href="#menu03" class="list-group-item menu-title" role="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseMenu03">
              <i class="fa fa-chevron-right"></i>结算管理
            </a>
            <ul class="list-group collapse.in indent-10" id="menu03">
              <a href="#" class="list-group-item">财务列表</a>
              <a href="#" class="list-group-item">签单欠离账务</a>
            </ul>
            <a href="#menu04" class="list-group-item menu-title" role="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseMenu04">
              <i class="fa fa-chevron-right"></i>餐饮报表
            </a>
            <ul class="list-group collapse.in indent-10" id="menu04">
              <a href="#" class="list-group-item">营收流水</a>
              <a href="#" class="list-group-item">经营报表（日、月）</a>
            </ul>
            <a href="#" class="list-group-item menu-title indent-10" role="button">
              系统日志
            </a>
          </div>
        </div>
      </div>
      <!-- 右主体 -->
      <div class="col-md-10">
        <div class="menu-main-title">
          <h4><i class="fa fa-shopping-cart"></i> 酒菜设置</h4>
        </div>
        <!-- 查询栏开始 -->
        <div class="col-md-12 search">
          <form class="form-inline pull-left" action="index.html" method="post">
            <div class="form-group">
              <label for="01">餐厅简称：</label>
              <select class="form-control" name="01" id="01" style="width:120px">
                <option value="all">全部</option>
                <option value="fengshouri">丰收日</option>
                <option value="xuanyi">轩逸茶餐厅</option>
              </select>
            </div>
            <div class="form-group">
              <label for="03">状态：</label>
              <select class="form-control" name="03" id="03" style="width:80px">
                <<option value="all">全部</option>
                <<option value="open">有效</option>
                <<option value="close">无效</option>
              </select>
            </div>
            <div class="form-group">
              <label for="query"></label>
              <button type="button" class="btn btn-query" name="button">
                <i class="fa fa-search"></i> 查询
              </button>
            </div>
          </form>
          <button type="button"
          class="btn btn-add pull-right"
          name="button"
          data-toggle="modal"
          data-backdrop="static"
          data-target="#addModal"
          data-modal-title="新增酒菜"
          data-modal-form-action="add"> <!-- data-modal-form-action 是设置弹出窗的表单的提交地址。 -->
            + 新增酒菜
          </button>
        </div>
        <!-- 查询栏结束 -->
        <!-- 列表开始 -->
        <div class="col-md-12 table-list">
          <div class="row">
            <table class="table table-hover">
              <thead>
                <th>菜名</th>
                <th>单位</th>
                <th>品类<i class="fa fa-caret-down"></th>
                <th>餐厅</i></th>
                <th>状态<i class="fa fa-caret-down"></i></th>
                <th>售价（元）</th>
                <th>售卖时段</th>
                <th>操作</th>
              </thead>
              <tbody>
                <tr class="text-center">
                  <td>海鲜大排档</td>
                  <td>600g</td>
                  <td>东海小鲜</td>
                  <td>丰收日</td>
                  <td class="statu-for-sale">待售</td>
                  <td>129.00 <i class="fa fa-caret-square-o-down price-tips"
                    data-container="body"
                    data-toggle="popover"
                    data-trigger="hover"
                    data-placement="bottom"
                    data-content="
                    <table>
                      <tr>
                        <td class='price-tips-left'>午市（10:00-13:00）</td>
                        <td class='price-tips-right'>129.00</td>
                      </tr>
                      <tr>
                        <td class='price-tips-left'>晚市（16:00-22:00）</td>
                        <td class='price-tips-right'>88.00</td>
                      </tr>
                      <tr>
                        <td class='price-tips-left'>夜宵（22:00-00:00）</td>
                        <td class='price-tips-right'>38.00</td>
                      </tr>
                    </table>
                    "
                    data-html="true"
                    ></i>
                  </td>
                  <td>
                    <span class="tags">午市</span>
                    <span class="tags">晚市</span>
                    <span class="tags">夜宵</span>
                  </td>
                  <td>
                    <a href="#"
                    data-toggle="modal"
                    data-backdrop="static"
                    data-target="#editModal"
                    data-modal-id="88"
                    data-modal-title="酒菜编辑"
                    data-modal-form-action="edit">
                      编辑
                    </a>
                     | 开售
                   </td>
                </tr>
                <tr class="text-center">
                  <td>海鲜大排档</td>
                  <td>600g</td>
                  <td>东海小鲜</td>
                  <td>丰收日</td>
                  <td class="statu-enable">在售</td>
                  <td>129.00 <i class="fa fa-caret-square-o-down price-tips"></i></td>
                  <td>
                    <span class="tags">午市</span>
                    <span class="tags">晚市</span>
                    <span class="tags">夜宵</span>
                  </td>
                  <td>
                    <a href="#"
                    data-toggle="modal"
                    data-backdrop="static"
                    data-target="#editModal"
                    data-modal-id="88"
                    data-modal-title="酒菜编辑"
                    data-modal-form-action="edit">
                      编辑
                    </a>
                     | 停售
                   </td>
                </tr>
                <tr class="text-center">
                  <td>海鲜大排档</td>
                  <td>600g</td>
                  <td>东海小鲜</td>
                  <td>丰收日</td>
                  <td>沽清</td>
                  <td>129.00 <i class="fa fa-caret-square-o-down price-tips"></i></td>
                  <td>
                    <span class="tags">午市</span>
                    <span class="tags">晚市</span>
                    <span class="tags">夜宵</span>
                  </td>
                  <td>
                    <a href="#"
                    data-toggle="modal"
                    data-backdrop="static"
                    data-target="#editModal"
                    data-modal-id="88"
                    data-modal-title="酒菜编辑"
                    data-modal-form-action="edit">
                      编辑
                    </a>
                     | 开售
                   </td>
                </tr>
              </tbody>
            </table>
            <!-- 列表结束 -->
            <span class="pull-left page-record">总共 130 条记录，每页：10 条</span>
            <nav aria-label="Page navigation" class="pull-right">
              <ul class="pagination">
                <li class="disabled">
                  <a href="#" aria-label="上一页">
                    <span aria-hidden="true"><</span>
                  </a>
                </li>
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li>
                  <a href="#" aria-label="下一页">
                    <span aria-hidden="true">></span>
                  </a>
                </li>
              </ul>
            </nav>
          </div>
        </div>
      </div>
    </div>
    <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
      <div class="modal-dialog">
        <form class="form-horizontal" action="#" method="post">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
              <h5 class="modal-title" id=""></h5>
            </div>
            <div class="modal-body">
              <div class="row">
                <div class="col-md-12">
                  <ul id="tablist" class="nav nav-tabs nav-justified" role="tablist">
                    <li role="presentation" class="active">
                      <a href="#tab01" aria-controls="tab01" role="tab" data-toggle="tab">
                        酒菜信息
                      </a>
                    </li>
                    <li role="presentation">
                      <a href="#tab02" aria-controls="tab02" role="tab" data-toggle="tab">
                        基础售价
                      </a>
                    </li>
                    <li role="presentation">
                      <a href="#tab03" aria-controls="tab03" role="tab" data-toggle="tab">
                        其他设置
                      </a>
                    </li>
                  </ul>
                  <div class="blank-10"></div>
                  <div class="tab-content">
                    <div class="tab-pane active" id="tab01" role="tabpanel">
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">餐厅简称：</label>
                        <div class="col-sm-9">
                          <select class="form-control" name="" style="width:60%">
                            <option value="">丰收日</option>
                            <option value="">轩逸茶餐厅</option>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">菜品品类：</label>
                        <div class="col-sm-9">
                          <select class="form-control" name="" style="width:60%">
                            <option value="">魔都小菜</option>
                            <option value="">川菜</option>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">菜名：</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control" name="" style="width:60%" value="洞庭湖大鱼头">
                        </div>
                      </div>
                      <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-2">
                          <span class="badge tags-badge">- 制作标签</span>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="" class="col-sm-3 control-label">标签一</label>
                        <div class="col-md-9 foodCate">
                          <input type="text" class="form-control pull-left" name="foodName" value="剁椒" style="width:200px;">
                          <i class="fa fa-minus-circle fa-fw fa-2x va-mid del-food-cate clickable"></i>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="" class="col-sm-3 control-label">标签二</label>
                        <div class="col-md-9 foodCate">
                          <input type="text" class="form-control pull-left" name="foodName" value="剁椒" style="width:200px;">
                          <i class="fa fa-minus-circle fa-fw fa-2x va-mid del-food-cate clickable"></i>
                          <i class="fa fa-plus-circle fa-fw fa-2x va-mid add-food-cate clickable" title="增加标签"></i>
                        </div>
                      </div>
                    </div>
                    <div class="tab-pane" id="tab02" role="tabpanel">
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">售卖方式：</label>
                        <div class="col-sm-3">
                          <select class="form-control" name="" style="width:100%">
                            <option value="">称重</option>
                            <option value="">份数</option>
                          </select>
                        </div>
                        <div class="col-sm-4">
                          <input type="text" class="form-control pull-left" name="" style="width:50%;" value="">
                          <h5 class="va-mid pull-right">(单位：克)</h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="" class="col-sm-3 control-label">售卖时段：</label>
                        <div class="col-sm-9 va-mid">
                          <label for="" class="checkbox-inline">
                            <input type="checkbox" name="" value=""> 全天
                          </label>
                          <label for="" class="checkbox-inline">
                            <input type="checkbox" name="" value=""> 早餐
                          </label>
                          <label for="" class="checkbox-inline">
                            <input type="checkbox" name="" value=""> 午餐
                          </label>
                          <label for="" class="checkbox-inline">
                            <input type="checkbox" name="" value=""> 夜宵
                          </label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="" class="col-sm-3 control-label">统一售价：</label>
                        <div class="col-sm-9">
                          <div class="switch" tabindex="0">
                            <input type="checkbox" class="switch-checkbox" id="" placeholder="">
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">早餐时段：</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control pull-left" name="" style="width:20%;" value="68">
                          <h5 class="va-mid">（单位：元/500克）</h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">午餐时段：</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control pull-left" name="" style="width:20%;" value="98">
                          <h5 class="va-mid">（单位：元/500克）</h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">晚餐时段：</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control pull-left" name="" style="width:20%;" value="108">
                          <h5 class="va-mid">（单位：元/500克）</h5>
                        </div>
                      </div>
                    </div>
                    <div class="tab-pane" id="tab03" role="tabpanel">
                      <div class="form-group">
                        <div class="col-sm-9 col-sm-offset-1">
                          <label for="" class="control-label">
                            <input type="checkbox" class="" id="" placeholder="">厨师长力荐
                          </label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label for="" class="col-sm-3 control-label">图片上传：</label>
                        <div class="col-sm-4">
                          <input type="text" class="form-control" id="" readonly="readonly">
                        </div>
                        <div class="col-sm-3">
                          <button type="button" class="btn btn-success" name="button">浏览图片</button>
                        </div>
                      </div>
                      <div class="col-sm-9 col-sm-offset-3">
                        <p class="help-block">限制：200k；尺寸：150×150px</p>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="modal-footer">
              <button type="submit" class="btn btn-warning">
                <i class="fa fa-check"></i>&nbsp;保存
              </button>
            </div>
          </form>
        </div>
      </div>
    </div>
    <script src="node_modules/jquery/dist/jquery.min.js"></script>
    <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="node_modules/select2/dist/js/select2.full.min.js"></script>
    <script src="node_modules/select2/dist/js/i18n/zh-CN.js"></script>
    <script src="node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js" charset="utf-8"></script>
    <script src="js/custom.js" charset="utf-8"></script>
    <script type="text/javascript">
      $('#editModal').on('show.bs.modal', function(e) {
        var button = $(e.relatedTarget);
        var modalTitle = button.data('modal-title');
        var modalFormAction = button.data('modal-form-action');
        var modal = $(this);
        modal.find('.modal-title').text(modalTitle);
        modal.find('form').attr("action", modalFormAction);
      });

      $('select').select2();

      $('.switch-checkbox').bootstrapSwitch({
        'onText': '是',
        'offText': '否'
      });
    </script>
  </body>
</html>
